<template>
	<view class=""style="padding: 10upx 30upx 30upx;">
		<jyf-parser :html="infoInfo.content"></jyf-parser>
		<view class="cont-time">
			{{infoInfo.createtime}}
		</view>
	</view>
</template>

<script>
import jyfParser from "@/components/jyf-parser/jyf-parser";
export default{
	data(){
		return {
			id:'',
			info:'',
			infoInfo:''
		}
	},
	onLoad(option) {
		var that=this;
		if(option.id){
			that.id=option.id
		}
		uni.showLoading({title:'请稍后'})
		that.$axios('index/msginfo','POST',"salemsg",{id:that.id}).then(res=>{
			uni.hideLoading();
			if(res.data.code==200){
				that.info=res.data.data;
				that.infoInfo=that.info.info;
				uni.setNavigationBarTitle({title:that.infoInfo.title});
			}else{
				that.$api.msg(res.data.data)
			}
		})
	}
}
</script>

<style>
.cont-time{
	font-size: 32upx;
	color: #303133;
	line-height: 60upx;
	text-align: right;
}
</style>
